<?xml version="1.0" encoding="utf-8"?>
<brl xmlns="http://schemas.microsoft.com/businessruleslanguage/2002">
  <ruleset name="EDIGuidance.PropertyResolution">
    <version major="1" minor="2" description="" modifiedby="WIN-9NXPAJC07S9\Administrator" date="2009-07-17T10:49:47.4002999-04:00" />
    <configuration />
    <bindings>
      <class ref="XmlHelper" class="XmlHelper" instance="0" instances="16" selectivity="1">
        <assembly>Microsoft.BizTalk.Samples.EDIGuidance.HelperComponents, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7238d11e949b827e</assembly>
        <!--C:\Windows\assembly\GAC_MSIL\Microsoft.BizTalk.Samples.EDIGuidance.HelperComponents\1.0.0.0__7238d11e949b827e\Microsoft.BizTalk.Samples.EDIGuidance.HelperComponents.dll-->
        <namespace>Microsoft.BizTalk.Samples.EDIGuidance.HelperComponents</namespace>
      </class>
      <class ref="EDIBREHelper" class="EDIBREHelper" instance="0" instances="16" selectivity="1">
        <assembly>Microsoft.BizTalk.Samples.EDIGuidance.HelperComponents, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7238d11e949b827e</assembly>
        <!--C:\Windows\assembly\GAC_MSIL\Microsoft.BizTalk.Samples.EDIGuidance.HelperComponents\1.0.0.0__7238d11e949b827e\Microsoft.BizTalk.Samples.EDIGuidance.HelperComponents.dll-->
        <namespace>Microsoft.BizTalk.Samples.EDIGuidance.HelperComponents</namespace>
      </class>
      <class ref="XmlDocument" class="XmlDocument" instance="0" instances="16" selectivity="1">
        <assembly>System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</assembly>
        <!--C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll-->
        <namespace>System.Xml</namespace>
      </class>
    </bindings>
    <rule name="PO_THEM1_NoBatch" priority="0" active="true">
      <if>
        <and>
          <compare operator="equal">
            <vocabularylink uri="3f0e9bcc-6212-4e6a-853c-e517f157a626" element="05703dd9-1111-40b8-890d-ad7bfc45a925" />
            <lhs>
              <function>
                <classmember member="GetBizTalkDocumentType" sideeffects="true">
                  <classref ref="XmlHelper" />
                  <argument>
                    <reference>
                      <classref ref="XmlDocument" />
                    </reference>
                  </argument>
                </classmember>
              </function>
            </lhs>
            <rhs>
              <constant>
                <string>http://schemas.microsoft.com/BizTalk/EDI/X12/2006#X12_00401_850</string>
              </constant>
            </rhs>
          </compare>
          <compare operator="equal">
            <vocabularylink uri="3f0e9bcc-6212-4e6a-853c-e517f157a626" element="05703dd9-1111-40b8-890d-ad7bfc45a925" />
            <lhs>
              <function>
                <classmember member="GetValue" sideeffects="true">
                  <classref ref="XmlHelper" />
                  <argument>
                    <reference>
                      <classref ref="XmlDocument" />
                    </reference>
                  </argument>
                  <argument>
                    <constant>
                      <string>//PER02</string>
                    </constant>
                  </argument>
                </classmember>
              </function>
            </lhs>
            <rhs>
              <constant>
                <string>Karl Rissland</string>
              </constant>
            </rhs>
          </compare>
          <compare operator="not equal">
            <vocabularylink uri="3f0e9bcc-6212-4e6a-853c-e517f157a626" element="c22af575-9920-417c-a545-67fa0ece9832" />
            <lhs>
              <function>
                <classmember member="GetValue" sideeffects="true">
                  <classref ref="XmlHelper" />
                  <argument>
                    <reference>
                      <classref ref="XmlDocument" />
                    </reference>
                  </argument>
                  <argument>
                    <constant>
                      <string>//BEG06</string>
                    </constant>
                  </argument>
                </classmember>
              </function>
            </lhs>
            <rhs>
              <constant>
                <string>IBM</string>
              </constant>
            </rhs>
          </compare>
        </and>
      </if>
      <then>
        <function>
          <classmember member="set_DestinationPartyName" sideeffects="true">
            <classref ref="EDIBREHelper" />
            <argument>
              <constant>
                <string>THEM1</string>
              </constant>
            </argument>
          </classmember>
        </function>
        <function>
          <classmember member="set_ToBeBatched" sideeffects="true">
            <classref ref="EDIBREHelper" />
            <argument>
              <constant>
                <boolean>false</boolean>
              </constant>
            </argument>
          </classmember>
        </function>
        <function>
          <classmember member="set_BatchName" sideeffects="true">
            <classref ref="EDIBREHelper" />
            <argument>
              <constant>
                <string>NoBatch</string>
              </constant>
            </argument>
          </classmember>
        </function>
      </then>
    </rule>
    <rule name="PO_THEM2_Batch" priority="0" active="true">
      <if>
        <and>
          <compare operator="equal">
            <vocabularylink uri="3f0e9bcc-6212-4e6a-853c-e517f157a626" element="05703dd9-1111-40b8-890d-ad7bfc45a925" />
            <lhs>
              <function>
                <classmember member="GetBizTalkDocumentType" sideeffects="true">
                  <classref ref="XmlHelper" />
                  <argument>
                    <reference>
                      <classref ref="XmlDocument" />
                    </reference>
                  </argument>
                </classmember>
              </function>
            </lhs>
            <rhs>
              <constant>
                <string>http://schemas.microsoft.com/BizTalk/EDI/X12/2006#X12_00401_850</string>
              </constant>
            </rhs>
          </compare>
          <compare operator="equal">
            <vocabularylink uri="3f0e9bcc-6212-4e6a-853c-e517f157a626" element="05703dd9-1111-40b8-890d-ad7bfc45a925" />
            <lhs>
              <function>
                <classmember member="GetValue" sideeffects="true">
                  <classref ref="XmlHelper" />
                  <argument>
                    <reference>
                      <classref ref="XmlDocument" />
                    </reference>
                  </argument>
                  <argument>
                    <constant>
                      <string>//PER02</string>
                    </constant>
                  </argument>
                </classmember>
              </function>
            </lhs>
            <rhs>
              <constant>
                <string>Toya Lofton</string>
              </constant>
            </rhs>
          </compare>
          <compare operator="equal">
            <vocabularylink uri="3f0e9bcc-6212-4e6a-853c-e517f157a626" element="05703dd9-1111-40b8-890d-ad7bfc45a925" />
            <lhs>
              <function>
                <classmember member="GetValue" sideeffects="true">
                  <classref ref="XmlHelper" />
                  <argument>
                    <reference>
                      <classref ref="XmlDocument" />
                    </reference>
                  </argument>
                  <argument>
                    <constant>
                      <string>//BEG06</string>
                    </constant>
                  </argument>
                </classmember>
              </function>
            </lhs>
            <rhs>
              <constant>
                <string>IBM</string>
              </constant>
            </rhs>
          </compare>
        </and>
      </if>
      <then>
        <function>
          <classmember member="set_BatchName" sideeffects="true">
            <classref ref="EDIBREHelper" />
            <argument>
              <constant>
                <string>TestBatch</string>
              </constant>
            </argument>
          </classmember>
        </function>
        <function>
          <classmember member="set_DestinationPartyName" sideeffects="true">
            <classref ref="EDIBREHelper" />
            <argument>
              <constant>
                <string>THEM2</string>
              </constant>
            </argument>
          </classmember>
        </function>
        <function>
          <classmember member="set_ToBeBatched" sideeffects="true">
            <classref ref="EDIBREHelper" />
            <argument>
              <constant>
                <boolean>true</boolean>
              </constant>
            </argument>
          </classmember>
        </function>
      </then>
    </rule>
    <rule name="PO_THEM1_Batch" priority="0" active="true">
      <if>
        <and>
          <compare operator="equal">
            <vocabularylink uri="3f0e9bcc-6212-4e6a-853c-e517f157a626" element="05703dd9-1111-40b8-890d-ad7bfc45a925" />
            <lhs>
              <function>
                <classmember member="GetBizTalkDocumentType" sideeffects="true">
                  <classref ref="XmlHelper" />
                  <argument>
                    <reference>
                      <classref ref="XmlDocument" />
                    </reference>
                  </argument>
                </classmember>
              </function>
            </lhs>
            <rhs>
              <constant>
                <string>http://schemas.microsoft.com/BizTalk/EDI/X12/2006#X12_00401_850</string>
              </constant>
            </rhs>
          </compare>
          <compare operator="equal">
            <vocabularylink uri="3f0e9bcc-6212-4e6a-853c-e517f157a626" element="05703dd9-1111-40b8-890d-ad7bfc45a925" />
            <lhs>
              <function>
                <classmember member="GetValue" sideeffects="true">
                  <classref ref="XmlHelper" />
                  <argument>
                    <reference>
                      <classref ref="XmlDocument" />
                    </reference>
                  </argument>
                  <argument>
                    <constant>
                      <string>//PER02</string>
                    </constant>
                  </argument>
                </classmember>
              </function>
            </lhs>
            <rhs>
              <constant>
                <string>Karl Rissland</string>
              </constant>
            </rhs>
          </compare>
          <compare operator="equal">
            <vocabularylink uri="3f0e9bcc-6212-4e6a-853c-e517f157a626" element="05703dd9-1111-40b8-890d-ad7bfc45a925" />
            <lhs>
              <function>
                <classmember member="GetValue" sideeffects="true">
                  <classref ref="XmlHelper" />
                  <argument>
                    <reference>
                      <classref ref="XmlDocument" />
                    </reference>
                  </argument>
                  <argument>
                    <constant>
                      <string>//BEG06</string>
                    </constant>
                  </argument>
                </classmember>
              </function>
            </lhs>
            <rhs>
              <constant>
                <string>IBM</string>
              </constant>
            </rhs>
          </compare>
        </and>
      </if>
      <then>
        <function>
          <classmember member="set_DestinationPartyName" sideeffects="true">
            <classref ref="EDIBREHelper" />
            <argument>
              <constant>
                <string>THEM1</string>
              </constant>
            </argument>
          </classmember>
        </function>
        <function>
          <classmember member="set_ToBeBatched" sideeffects="true">
            <classref ref="EDIBREHelper" />
            <argument>
              <constant>
                <boolean>true</boolean>
              </constant>
            </argument>
          </classmember>
        </function>
        <function>
          <classmember member="set_BatchName" sideeffects="true">
            <classref ref="EDIBREHelper" />
            <argument>
              <constant>
                <string>TestBatch</string>
              </constant>
            </argument>
          </classmember>
        </function>
      </then>
    </rule>
    <rule name="PO_THEM2_NoBatch" priority="0" active="true">
      <if>
        <and>
          <compare operator="equal">
            <vocabularylink uri="3f0e9bcc-6212-4e6a-853c-e517f157a626" element="05703dd9-1111-40b8-890d-ad7bfc45a925" />
            <lhs>
              <function>
                <classmember member="GetBizTalkDocumentType" sideeffects="true">
                  <classref ref="XmlHelper" />
                  <argument>
                    <reference>
                      <classref ref="XmlDocument" />
                    </reference>
                  </argument>
                </classmember>
              </function>
            </lhs>
            <rhs>
              <constant>
                <string>http://schemas.microsoft.com/BizTalk/EDI/X12/2006#X12_00401_850</string>
              </constant>
            </rhs>
          </compare>
          <compare operator="equal">
            <vocabularylink uri="3f0e9bcc-6212-4e6a-853c-e517f157a626" element="05703dd9-1111-40b8-890d-ad7bfc45a925" />
            <lhs>
              <function>
                <classmember member="GetValue" sideeffects="true">
                  <classref ref="XmlHelper" />
                  <argument>
                    <reference>
                      <classref ref="XmlDocument" />
                    </reference>
                  </argument>
                  <argument>
                    <constant>
                      <string>//PER02</string>
                    </constant>
                  </argument>
                </classmember>
              </function>
            </lhs>
            <rhs>
              <constant>
                <string>Toya Lofton</string>
              </constant>
            </rhs>
          </compare>
          <compare operator="not equal">
            <vocabularylink uri="3f0e9bcc-6212-4e6a-853c-e517f157a626" element="c22af575-9920-417c-a545-67fa0ece9832" />
            <lhs>
              <function>
                <classmember member="GetValue" sideeffects="true">
                  <classref ref="XmlHelper" />
                  <argument>
                    <reference>
                      <classref ref="XmlDocument" />
                    </reference>
                  </argument>
                  <argument>
                    <constant>
                      <string>//BEG06</string>
                    </constant>
                  </argument>
                </classmember>
              </function>
            </lhs>
            <rhs>
              <constant>
                <string>IBM</string>
              </constant>
            </rhs>
          </compare>
        </and>
      </if>
      <then>
        <function>
          <classmember member="set_BatchName" sideeffects="true">
            <classref ref="EDIBREHelper" />
            <argument>
              <constant>
                <string>NoBatch</string>
              </constant>
            </argument>
          </classmember>
        </function>
        <function>
          <classmember member="set_DestinationPartyName" sideeffects="true">
            <classref ref="EDIBREHelper" />
            <argument>
              <constant>
                <string>THEM2</string>
              </constant>
            </argument>
          </classmember>
        </function>
        <function>
          <classmember member="set_ToBeBatched" sideeffects="true">
            <classref ref="EDIBREHelper" />
            <argument>
              <constant>
                <boolean>false</boolean>
              </constant>
            </argument>
          </classmember>
        </function>
      </then>
    </rule>
  </ruleset>
</brl>